Skip to content

chore(components): remove 12 never-used components - #255

Merged
danileau merged 1 commit into
mainfrom
chore/remove-unused-components
Nov 12, 2026
Merged

danileau merged 1 commit into
mainfrom
chore/remove-unused-components

Conversation

@danileau

Copy link
Copy Markdown
Owner

Removes 12 components that nothing in the app imports. They are scaffolding from early design iterations: the screens kept their own markup and never adopted them. 928 lines deleted.

Removed: Badge, Button, Card, ChipGroup, ConfirmDelete, Counter, EmptyState, HelpHint, Input, SectionDivider, Skeleton, StatCard.

I checked usage across src/ and e2e/, counting #lib/… and relative ./X.svelte imports. Before this, Button was used only by EmptyState, and ConfirmDelete only by primitives.test.ts. BottomSheet and ScopeChoice are in use and stay.

Knock-on cleanup:

  • primitives.test.ts: dropped the ConfirmDelete adoption rule, which no site had ever adopted, along with the three primitive-exempt: ConfirmDelete comments in CompanionRail, EntryComposer and journal. The Modal rule stays.
  • palette-migration.test.ts: dropped the Button.svelte entry.
  • i18n: dropped common.increase_label and common.decrease_label from all four locales. Only Counter used them.
  • components/README.md: removed the "not yet wired" section and the entries for these components, and noted the removal under CIPH-834.
  • CustomItemModal: a comment cited Input.svelte:84; reworded.

Conflict note: #253 also edits components/README.md. Whichever merges second needs a small rebase.

Testing

vitest 2248 passed (151 files), including components-inventory, primitives, keys-used and parity. svelte-check 0/0. Build OK. No API change.

@danileau
danileau force-pushed the chore/remove-unused-components branch from 53e39d9 to 0287be9 Compare November 12, 2026 14:56
@danileau
danileau merged commit be2cfd7 into main Nov 12, 2026
4 checks passed
@danileau
danileau deleted the chore/remove-unused-components branch November 12, 2026 17:00
@danileau danileau mentioned this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant